package com.shunwang.vo;

import com.alibaba.fastjson.annotation.JSONSortIndex;

public class OptResult {

	private boolean success;
	private String msg;
	
	public OptResult(boolean success){
		if(success){
			this.msg = "操作成功";
		}else{
			this.msg = "操作失败";
		}
		this.success = success;
	}
	@JSONSortIndex(value=2)
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	@JSONSortIndex(value=1)
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
